package cn.cyl.org.domain;

import cn.cyl.basic.domain.BaseDomain;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
public class Employee extends BaseDomain {
    private String username;
    private String phone;
    private String email;
    private String salt;
    private String password;
    //确认的二次密码
    private String comfirmPassword;
    private Integer age;
    private Integer state=1;
    private Long department_id;
    private Long logininfo_id;
    private Long shop_id;
    private String name;
    //上级部门对象
    private Department ment;
    //保存当前的子部门
    //部门树最后一级没有数据就不显示
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private List<Department> children=new ArrayList<>();

    private Long role_id;

    private String role_name;
}
